//package com.ht.pms.core.controller;
//
//
//import com.baomidou.mybatisplus.mapper.EntityWrapper;
//import com.ht.pms.core.dto.ApplyReimbursement;
//import com.ht.pms.core.service.ApplyReimbursementService;
//import com.ht.pms.core.service.impl.DDServerImpl;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.util.ResourceUtils;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.File;
//import java.io.InputStream;
//import java.lang.reflect.Field;
//import java.util.List;
//
//@RestController
//public class TestController {
//
//    private static final Logger LOG = LoggerFactory.getLogger(TestController.class);
//
//    @Autowired
//    private DDServerImpl ddService;
//
//    @Autowired
//    private ApplyReimbursementService applyReimbursementService;
//
//    @RequestMapping("/testDD")
//    public void test() throws Exception {
//        List<ApplyReimbursement> applyReimbursementListForSend =applyReimbursementService.selectList(new EntityWrapper<ApplyReimbursement>().eq("approve_id","201812291726000355293").eq("company_type","fc"));
//        ddService.createWord(applyReimbursementListForSend,"fc");
//    }
//
//    @RequestMapping("/testFilePath")
//    public String testFilePath(){
//        File file = new File(TestController.class.getClassLoader().getResource("template/wordTemplate.ftl").getPath());
//        System.out.println("======资源路径："+file.getPath());
//        System.out.println("======资源路径_父路径："+file.getParent());
//        File parent = new File(file.getParent());
//        System.out.println("parent.isDirectory():"+parent.isDirectory());
//
//
//
//
//        if(parent.isDirectory()){
//
//            for (File f:parent.listFiles()) {
//                System.out.println("=======路径下文件名："+f.getName());
//            }
//        }
//
//        return file.getParent()+":"+file.getPath();
//    }
//
//}
